<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/content.jsp"%>
<script language="javascript" src="${pageContext.request.contextPath}/common/js/jquery/jquery.js" type=""></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/admin/dict/dictValue.js"></script>
</head>
<body class="mainBody" onload="">
<form action="" method="post">
<input type="hidden" name="oprflag" id="oprflag" value="" >
<input type="hidden" name="typeKind" id="typeKind" value="${param.typeKind}" >
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="formTable">
    <tr>
        <td class="formTableL">&#160;</td>
        <td class="formTableC">
            <div class="ecSide"  style="width:100%;" style="overflow-y:auto; height:100%">
            <table border="0" cellspacing="0" cellpadding="0" class="tableRegion" width="100%">
                <tr>
                    <td colspan="5" align="center">
                    <c:if test="${param.valMgrflag=='0'}">
                        <button id="bValReload" name="bValReload" onclick="valReload()">刷新</button>
                        <button id="bValSynReload" name="bValSynReload" onclick="valSynReload()">同步刷新</button>
                        <button id="bManager" name="bManager" onclick="valManager('1')">管理模式</button>
                    </c:if>
                    <c:if test="${param.valMgrflag=='1'}">
                        <button id="bManager" name="bManager" onclick="valManager('0')">退出管理</button>
                        <button id="bValAdd" name="bValAdd" onclick="valAdd()">增加</button>
                        <button id="bValUpd" name="bValUpd" onclick="valUpd()" disabled="">修改</button>
                        <button id="bValDel" name="bValDel" onclick="valDel()" disabled="">删除</button>
                    </c:if>
                    </td>
                </tr>
                <tr>
                    <td class="tableHeader">值ID</td>
                    <td class="tableHeader">值</td>
                    <td class="tableHeader">值名称</td>
                    <td class="tableHeader">扩展值</td>
                    <td class="tableHeader">备注</td>
                </tr>
        <c:if test="${!empty typeVals}">
            <c:forEach var="item" items="${typeVals}" varStatus="sta">
                <tr onclick="selectRowClk(this);selectTypeRow(this)" <c:if test="${sta.index%2 == 1}">class="even"</c:if> <c:if test="${sta.index%2 != 1}">class="odd"</c:if>
                onmouseover="ECSideUtil.lightRow(this,'ec');" onMouseOut="ECSideUtil.unlightRow(this,'ec');" style="cursor:hand;">
                <td>${item.valId}</td>
                <td>${item.valVal}</td>
                <td>${item.valName}</td>
                <td>${item.extVal}</td>
                <td>${item.memo}</td>
                </tr>
            </c:forEach>
        </c:if>
            </table>
            </div>
        </td>
        <td class="formTableR">&#160;</td>
    </tr>
    <tr>
        <td class="formTableLB"></td>
        <td class="formTableB"></td>
        <td class="formTableRB"></td>
    </tr>
</table>
</form>
</body>
</html>
